//
//  ZZCCommon.swift
//  weibo
//
//  Created by zhangzuchao on 17/3/29.
//  Copyright © 2017年 zhangZuChao. All rights reserved.
//


//定义一些通用设置
import UIKit
//  切换根视图控制器的通知名
let SwitchRootVCNotification = "SwitchRootVCNotification"

//  首页cell的重用标记
let HomeCellIdentifier = "HomeCellIdentifier"

//  首页配图cell的重用标记
let HomePictureViewCellIdentifier = "HomePictureViewCellIdentifier"
//  点击表情按钮的通知名
let DidSelectedEmoitconButtonNoti = "DidSelectedEmoitconButtonNoti"
//  点击删除标签的通知名
let DidSelectedDeleteEmoticonNoti = "DidSelectedDeleteEmoticonNoti"
//  发微博配图cell的重用标记
let ComposePictureViewCellIdentifier = "ComposePictureViewCellIdentifier"
//  首页子控件之间间距
let HomeCellMargin: CGFloat = 10
//  表情视图的cell的重用标记
let EmoticonViewCellIdentifier = "EmoticonViewCellIdentifier"

//  获取当前屏幕的宽度
let ScreenWidth = UIScreen.main.bounds.size.width
//  获取当前屏幕的宽度
let ScreenHeight = UIScreen.main.bounds.size.height

//  全局函数创建随机颜色
func RandomColor() -> UIColor {
    
    let red = CGFloat(arc4random_uniform(256)) / 255.0
    let green = CGFloat(arc4random_uniform(256)) / 255.0
    let blue = CGFloat(arc4random_uniform(256)) / 255.0
    
    return UIColor(red: red, green: green, blue: blue, alpha: 1.0)
}
